#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "..\jagamex86\q_shared.h"
#include "..\jagamex86\bg_global.h"

CDECL_FUNCTION(void, trap_ErrorX, (char *error));
CDECL_FUNCTION(void, trap_PrintfX, (char *fmt, ...));
CDECL_FUNCTION(const char *, Argv, (int n));
CDECL_FUNCTION(void, Argv2, (int n, char *buffer));
CDECL_FUNCTION(void, trap_S_StartSoundX, (vec3_t origin, int entityNum, int channel, sfxHandle_t handle));
FASTCALL_FUNCTION(qhandle_t, trap_R_RegisterShaderX, (char *name));
FASTCALL_FUNCTION(qhandle_t, trap_R_RegisterShaderNoMipX, (char *name));
FASTCALL_FUNCTION(sfxHandle_t, trap_S_RegisterSoundX, (char *path));

trap_ErrorX trap_Error;
trap_PrintfX trap_Printf;
trap_R_RegisterShaderX trap_R_RegisterShader;
trap_R_RegisterShaderNoMipX trap_R_RegisterShaderNoMip;
trap_S_RegisterSoundX trap_S_RegisterSound;
trap_S_StartSoundX trap_S_StartSound;
Argv CG_Argv;
Argv2 CG_Argv2;